package fina2.dcs.fis;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "IN_REGIONS")
@SuppressWarnings("serial")
public class Region implements Serializable {
	private BigDecimal id;
	private BigDecimal regionStrId;
	private BigDecimal cityStrId;
	private String regionName;
	private List<City> cities = new ArrayList<City>();
	private String cityName;

	@Id
	@Column(name = "ID")
	public BigDecimal getId() {
		return id;
	}

	public void setId(BigDecimal id) {
		this.id = id;
	}

	@Column(name = "REGIONSTRID")
	public BigDecimal getRegionStrId() {
		return regionStrId;
	}

	public void setRegionStrId(BigDecimal regionStrId) {
		this.regionStrId = regionStrId;
	}

	@Column(name = "CITYSTRID")
	public BigDecimal getCityStrId() {
		return cityStrId;
	}

	public void setCityStrId(BigDecimal cityStrId) {
		this.cityStrId = cityStrId;
	}

	@Transient
	public String getRegionName() {
		return regionName;
	}

	public void setRegionName(String regionName) {
		this.regionName = regionName;
	}

	@Transient
	public List<City> getCities() {
		return cities;
	}

	public void setCities(List<City> cities) {
		this.cities = cities;
	}

	@Transient
	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
	
	

}
